/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import net.minecraft.entity.player.EntityPlayer;
/*     */ import net.minecraft.init.Items;
/*     */ import net.minecraft.util.EnumHand;
/*     */ 
/*     */ public class yw
/*     */   extends qr<EntityPlayer> {
/*     */   public boolean r = false;
/*     */   public boolean f = false;
/*     */   public boolean s = false;
/*  12 */   public int m = 0;
/*  13 */   public float l = 0.0F;
/*  14 */   public float q = 0.0F;
/*     */   
/*  16 */   private Boolean g = null;
/*     */ 
/*     */ 
/*     */   
/*     */   public yw(EntityPlayer entityPlayer) {
/*  21 */     super(entityPlayer);
/*     */   }
/*     */   
/*     */   public void z(float f) {
/*  25 */     this.q = f;
/*     */   }
/*     */   
/*     */   public float q() {
/*  29 */     return this.l;
/*     */   }
/*     */   
/*     */   public void t(boolean bool) {
/*  33 */     this.g = Boolean.valueOf(bool);
/*     */   }
/*     */   
/*     */   public void c() {
/*  37 */     this.g = null;
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public void v(float f) {
/*  43 */     super.v(f);
/*     */     
/*  45 */     if (s() > 20.0F) {
/*  46 */       this.m = 0;
/*     */     }
/*     */     
/*  49 */     if (this.d < 0.0D) {
/*  50 */       this.f = false;
/*     */     }
/*     */     
/*  53 */     if (!this.f && this.d > 0.0D) {
/*  54 */       this.r = !this.r;
/*  55 */       this.f = true;
/*     */     } 
/*     */     
/*  58 */     this.l += this.q * hq.g;
/*  59 */     if (this.l > 380.0F) {
/*  60 */       this.l -= 380.0F;
/*     */     }
/*     */   }
/*     */   
/*     */   public void y() {
/*  65 */     super.y();
/*  66 */     if (!this.f) {
/*  67 */       this.r = !this.r;
/*  68 */       this.f = true;
/*     */     } 
/*     */   }
/*     */ 
/*     */   
/*     */   public void t() {
/*  74 */     if (this.j.func_184586_b(EnumHand.MAIN_HAND).func_77973_b() == Items.field_190931_a) {
/*  75 */       this.s = !this.s;
/*  76 */       this.z = 0.0F;
/*     */       
/*     */       return;
/*     */     } 
/*  80 */     if (this.z <= 6.0F) {
/*     */       return;
/*     */     }
/*     */ 
/*     */     
/*  85 */     switch (this.m) {
/*     */       case 1:
/*  87 */         this.m = 2;
/*     */         break;
/*     */       case 2:
/*  90 */         this.m = 3;
/*     */         break;
/*     */       case 3:
/*  93 */         this.m = 4;
/*     */         break;
/*     */       case 4:
/*  96 */         this.m = v().func_184218_aH() ? 1 : 5;
/*     */         break;
/*     */       default:
/*  99 */         this.m = 1;
/*     */         break;
/*     */     } 
/*     */     
/* 103 */     this.z = 0.0F;
/*     */   }
/*     */   
/*     */   public int v() {
/* 107 */     return this.m;
/*     */   }
/*     */   
/*     */   public boolean i() {
/* 111 */     return this.s;
/*     */   }
/*     */   
/*     */   public boolean l() {
/* 115 */     return this.r;
/*     */   }
/*     */   
/*     */   public boolean q() {
/* 119 */     return (this.g != null) ? this.g
/* 120 */       .booleanValue() : this.j.field_71075_bZ.field_75100_b;
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\yw.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */